class Solution {
public:
    int inventoryManagement(vector<int>& stock) {
        sort(stock.begin(),stock.end());
        return stock[stock.size()/2];
    }
};